import request from '@/utils/request'

// 查询系统活动列表
export function listSysActivity(query) {
  return request({
    url: '/system/sysActivity/list',
    method: 'get',
    params: query
  })
}

// 查询系统活动详细
export function getSysActivity(id) {
  return request({
    url: '/system/sysActivity/' + id,
    method: 'get'
  })
}

// 新增系统活动
export function addSysActivity(data) {
  return request({
    url: '/system/sysActivity',
    method: 'post',
    data: data
  })
}

// 修改系统活动
export function updateSysActivity(data) {
  return request({
    url: '/system/sysActivity',
    method: 'put',
    data: data
  })
}

// 删除系统活动
export function delSysActivity(id) {
  return request({
    url: '/system/sysActivity/' + id,
    method: 'delete'
  })
}

// 导出系统活动
export function exportSysActivity(query) {
  return request({
    url: '/system/sysActivity/export',
    method: 'get',
    params: query
  })
}


// 删除系统活动
export function listGoodsGift() {
  return request({
    url: '/system/sysActivity/gift',
    method: 'get'
  })
}
